package com.yjd.comm.user.service;

import java.util.List;
import java.util.Map;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.enums.UserIdcardTypeEnum;
import com.yjd.comm.user.model.UserIdcardModel;

/**
 * <b>description</b>：会员证件信息业务接口<br>
 * <b>time</b>：2014-12-26 09:26:17 <br>
 * <b>author</b>：  ready likun_557@163.com
 */
public interface IUserIdcardService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public UserIdcardModel insert(UserIdcardModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(UserIdcardModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param user_id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long user_id) throws Exception;

	/**
	 * 
	* 获取Map
	* @param param
	* @return
	* @throws Exception
	 */
	@SuppressWarnings("rawtypes")
	public Map<Long,UserIdcardModel> getModelMap(Map param) throws Exception;
	
	/**
	 * 获取用户身份证
	 * 
	 * @param user_id
	 * @return
	 * @throws Exception
	 */
	public UserIdcardModel getUserSFZ(Long user_id) throws Exception;

	/**
	 * 获取用户证件信息列表
	 * 
	 * @param userIds
	 * @return
	 * @throws Exception
	 */
	public Map<Long, UserIdcardModel> getUserSFZMap(List<Long> userIds,
			UserIdcardTypeEnum userIdcardTypeEnum) throws Exception;
	
	/**
	 * 根据身份证信息查询用户认证信息
	* @param certNo
	* @return UserIdcardModel
	 * @throws Exception 
	 */
	public UserIdcardModel getUserIdCardModelByCertNo(String certNo) throws Exception;
	
	/**
	 * 注销证件号
	* @param idUser 用户ID
	* @param admin 操作员
	* @throws Exception
	* void
	 */
	public void destroy(Long idUser, Long operator) throws Exception;
	
	
}
